<script>
	export default {
		onLaunch: function() {
			console.log('App Launch')
						// 检查是否已登录
						const token = uni.getStorageSync('token')
						// 如果已登录且当前在登录页，则跳转到首页
						if (token) {
							uni.reLaunch({
								url: '/pages/index/index'
							})
						}
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style>
	/*每个页面公共css */
</style>
